<?php
class fix extends Controller {
	
	public $viewData;
	
	function fix() {
		parent::Controller();
		
		$this->viewData->title = "CartPool - Cart";
		$this->viewData->description = "Collaborative shopping";
		$this->viewData->keywords = "CartPool, shoppingcart";

		$this->viewData->css = array("reset", "960", "720_8", "cartpool_style", "smoothness.datepick");
		
		$this->viewData->js = array(	"jquery-1.3.2.min",
										"jquery.accordion-1.2.2", 
										"cufon-yui", 
										"segoe_400.font", 
										"jquery.form", 
										"jquery.autofill", 
										"jquery.datepick.min", 
										"pretty", 
										"cartpool_common", 
										"cartpool_cart");
		
		$this->load->library('cartpool');
		$this->load->library('session');
		$this->load->helper('url');
		
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
	}
	
	function index() {
		$this->cartpool->fixOrderTotals();
		$this->cartpool->fixShoppingLists();
	}
}